
import { checkGroupName } from "./formRuler";
// isBoolean:true, // 是否为Boolean类型, 参数是否必须为boolen类型，不是根据options个数判断，是根据后台字段类型要求判断
const sysSettingForm = [
  {
    value: '前台用户注册设置',
    type: '',
    id: '',
    children: [
      {
        value: false,
        param: 'frontUserFunction',
        rule: {
          required: false,
          validator: checkGroupName,
          trigger: ["blur"],
          msg1: '',
          msg2: '',
          api: "",
          key: 'siteDomain',
          params: {}, //校验传参
        },
        label: "是否开启前台用户功能:",
        type: 'radio',
        isBoolean: true, // 是否为Boolean类型
        options: ['是', '否'],
        tips: '',
      },
      {
        value: true,
        param: 'frontUserRegister',
        rule: {
          required: false,
          validator: checkGroupName,
          trigger: ["blur"],
          msg1: '',
          msg2: '',
          api: "",
          key: 'siteDomain',
          params: {}, //校验传参
        },
        label: "是否允许前台用户自注册:",
        type: 'radio',
        isBoolean: true, // 是否为Boolean类型
        options: ['是', '否'],
        tips: '',
        associated: 'frontUserFunction',
        associatedValue: true,
      },
      {
        value: false,
        param: 'memberRegisterNeedPictureVerificationCode',
        rule: {
          required: false,
          validator: checkGroupName,
          trigger: ["blur"],
          msg1: '',
          msg2: '',
          api: "",
          key: 'siteDomain',
          params: {}, //校验传参
        },
        label: "会员注册是否需要图片验证码:",
        type: 'radio',
        isBoolean: true, // 是否为Boolean类型
        options: ['是', '否'],
        tips: '',
        associated: 'frontUserFunction',
        associatedValue: true,
      },
      {
        value: true,
        param: 'memberRegisterNeedExamine',
        rule: {
          required: false,
          validator: checkGroupName,
          trigger: ["blur"],
          msg1: '',
          msg2: '',
          api: "",
          key: 'siteDomain',
          params: {}, //校验传参
        },
        label: "会员注册是否需要审核:",
        type: 'radio',
        isBoolean: true, // 是否为Boolean类型
        options: ['是', '否'],
        tips: '',
        associated: 'frontUserFunction',
        associatedValue: true,
      },
    ]
  },
]
export { sysSettingForm }